<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>事故备案</title>
    <link rel="stylesheet" href="/static/js/plugins/jquery-easyui/themes/metro/easyui.css">
    <link rel="stylesheet" href="/static/js/plugins/jquery-easyui/themes/icon.css">
    <script src="/static/js/plugins/jquery-easyui/jquery.min.js"></script>
    <script src="/static/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script src="/static/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/system/department.js"></script>
</head>
<body>
<table id="dept_datagrid"></table>
<%--为数据表格添加顶部按钮组件--%>
<%--为按钮绑定方法--%>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="change_btn" onclick="changeState()">停用</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>

</div>
<%--为表格添加保存|编辑的对话框--%>
<div id="dept_dialog">
    <%--对话框中是一个form表单--%>
    <form id="editForm" method="post" style="padding: 40px 0px 0px 30px;">
        <input type="hidden" name="id" id="deptId">
        <tr>
            <td align="right">编号:</td>
            <td><input class="easyui-textbox" type="text" name="sn" ></td><br>
        </tr>
        <tr>
            <td align="right">部门名称:</td>
            <td><input class="easyui-textbox" type="text" name="name"> </td><br>
        </tr>
        <tr>
            <td align="right">状态:</td>
            <td><input class="easyui-combobox" type="text" name="state"
                       data-options="data:[{value:'1',text:'在用'},{value:'0',text:'停用'}],
                valueField:'value', textField:'text', panelHeight:'auto'">
            </td><br>
        </tr>
    </form>
</div>
<div id="bb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancel()">取消</a>
</div>
</body>
</html>
